home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2.0 - Programmer's Utilities Power Pack / Delphi 2.0 Programmer's Utilities Power Pack.iso / a_to_d / dbplus2 / demomain.dfm / demomain.txt
Encoding:
Text File  |  1996-09-15  |  14.3 KB  |  614 lines

  1. object Form1: TForm1
  2.   Left = 216
  3.   Top = 90
  4.   BorderStyle = bsDialog
  5.   Caption = 'DBLookUpComboPlus Demo'
  6.   ClientHeight = 375
  7.   ClientWidth = 374
  8.   Font.Color = clWindowText
  9.   Font.Height = -13
  10.   Font.Name = 'System'
  11.   Font.Style = []
  12.   PixelsPerInch = 96
  13.   OnCreate = FormCreate
  14.   TextHeight = 16
  15.   object TabbedNotebook1: TTabbedNotebook
  16.     Left = 0
  17.     Top = 0
  18.     Width = 374
  19.     Height = 209
  20.     Hint = 'Main table data is a string and lookup table is a string.'
  21.     Align = alTop
  22.     TabFont.Color = clBtnText
  23.     TabFont.Height = -11
  24.     TabFont.Name = 'MS Sans Serif'
  25.     TabFont.Style = []
  26.     TabOrder = 0
  27.     object TTabPage
  28.       Left = 5
  29.       Top = 45
  30.       Caption = '1. csDropDownList'
  31.       object Name: TLabel
  32.         Left = 40
  33.         Top = 10
  34.         Width = 43
  35.         Height = 21
  36.         Caption = 'Name'
  37.       end
  38.       object Style: TLabel
  39.         Left = 34
  40.         Top = 37
  41.         Width = 49
  42.         Height = 16
  43.         Caption = 'Cuisine'
  44.       end
  45.       object Phone: TLabel
  46.         Left = 36
  47.         Top = 64
  48.         Width = 51
  49.         Height = 21
  50.         Caption = 'Phone'
  51.       end
  52.       object Location: TLabel
  53.         Left = 24
  54.         Top = 89
  55.         Width = 65
  56.         Height = 21
  57.         Caption = 'Location'
  58.       end
  59.       object DBEditName: TDBEdit
  60.         Left = 93
  61.         Top = 6
  62.         Width = 167
  63.         Height = 25
  64.         DataField = 'Name'
  65.         DataSource = DataSourceRest
  66.         MaxLength = 40
  67.         TabOrder = 0
  68.       end
  69.       object ComboPlusLocation: TDBLookupComboPlus
  70.         Left = 93
  71.         Top = 89
  72.         Width = 167
  73.         Height = 25
  74.         Hint = 
  75.           'Main table data is a string and lookup table is a string. Style ' +
  76.           '= csDropDownList'
  77.         DataField = 'Location'
  78.         DataSource = DataSourceRest
  79.         LookupSource = DataSourceLocation
  80.         LookupDisplay = 'Location'
  81.         LookupField = 'Location'
  82.         Style = csDropDownList
  83.         ParentShowHint = False
  84.         ShowHint = True
  85.         TabOrder = 2
  86.       end
  87.       object ComboPlusSubCat: TDBLookupComboPlus
  88.         Left = 93
  89.         Top = 33
  90.         Width = 167
  91.         Height = 25
  92.         Hint = 
  93.           'Main Table Data is an integer. Lookup displays a string. Style =' +
  94.           ' csDropDownList'
  95.         DataField = 'SubCat'
  96.         DataSource = DataSourceRest
  97.         LookupSource = DataSourceSubCat
  98.         LookupDisplay = 'SubCatName'
  99.         LookupField = 'SubCatNum'
  100.         Style = csDropDownList
  101.         ParentShowHint = False
  102.         ShowHint = True
  103.         TabOrder = 1
  104.       end
  105.       object Navigator1: TDBNavigator
  106.         Left = 0
  107.         Top = 134
  108.         Width = 356
  109.         Height = 25
  110.         DataSource = DataSourceRest
  111.         Align = alBottom
  112.         ParentShowHint = False
  113.         ShowHint = True
  114.         TabOrder = 3
  115.       end
  116.       object DBEditPhone: TDBEdit
  117.         Left = 93
  118.         Top = 61
  119.         Width = 103
  120.         Height = 25
  121.         DataField = 'Phone'
  122.         DataSource = DataSourceRest
  123.         MaxLength = 14
  124.         TabOrder = 4
  125.       end
  126.     end
  127.     object TTabPage
  128.       Left = 5
  129.       Top = 45
  130.       Caption = '2. csDropDown'
  131.       object Name2: TLabel
  132.         Left = 41
  133.         Top = 7
  134.         Width = 45
  135.         Height = 21
  136.         Caption = 'Name'
  137.       end
  138.       object Style2: TLabel
  139.         Left = 37
  140.         Top = 34
  141.         Width = 49
  142.         Height = 16
  143.         Caption = 'Cuisine'
  144.       end
  145.       object Phone2: TLabel
  146.         Left = 38
  147.         Top = 63
  148.         Width = 48
  149.         Height = 16
  150.         Caption = 'Phone'
  151.       end
  152.       object Location2: TLabel
  153.         Left = 24
  154.         Top = 88
  155.         Width = 62
  156.         Height = 21
  157.         Caption = 'Location'
  158.       end
  159.       object DBEditName2: TDBEdit
  160.         Left = 95
  161.         Top = 5
  162.         Width = 164
  163.         Height = 25
  164.         DataField = 'Name'
  165.         DataSource = DataSourceRest
  166.         MaxLength = 40
  167.         TabOrder = 0
  168.       end
  169.       object ComboPlusLocation2: TDBLookupComboPlus
  170.         Left = 95
  171.         Top = 85
  172.         Width = 164
  173.         Height = 25
  174.         Hint = 
  175.           'Main table data is a string and lookup table is a string. Style ' +
  176.           '= csDropDown'
  177.         DataField = 'Location'
  178.         DataSource = DataSourceRest
  179.         LookupSource = DataSourceLocation
  180.         LookupDisplay = 'Location'
  181.         LookupField = 'Location'
  182.         ParentShowHint = False
  183.         ShowHint = True
  184.         TabOrder = 3
  185.       end
  186.       object DBEditPhone2: TDBEdit
  187.         Left = 95
  188.         Top = 57
  189.         Width = 100
  190.         Height = 25
  191.         DataField = 'Phone'
  192.         DataSource = DataSourceRest
  193.         MaxLength = 14
  194.         TabOrder = 2
  195.       end
  196.       object DBNavigator1: TDBNavigator
  197.         Left = 0
  198.         Top = 134
  199.         Width = 356
  200.         Height = 25
  201.         DataSource = DataSourceRest
  202.         Align = alBottom
  203.         ParentShowHint = False
  204.         ShowHint = True
  205.         TabOrder = 4
  206.       end
  207.       object ComboPlusSubCat2: TDBLookupComboPlus
  208.         Left = 94
  209.         Top = 31
  210.         Width = 164
  211.         Height = 25
  212.         Hint = 
  213.           'Main Table Data is an integer. Lookup displays a string. Style =' +
  214.           ' csDropDown'
  215.         DataField = 'SubCat'
  216.         DataSource = DataSourceRest
  217.         LookupSource = DataSourceSubCat
  218.         LookupDisplay = 'SubCatName'
  219.         LookupField = 'SubCatNum'
  220.         LookupIndex = 'bySubCatName'
  221.         ParentShowHint = False
  222.         ShowHint = True
  223.         TabOrder = 1
  224.       end
  225.     end
  226.     object TTabPage
  227.       Left = 5
  228.       Top = 45
  229.       Caption = '3. csIncSearch'
  230.       object Name3: TLabel
  231.         Left = 40
  232.         Top = 9
  233.         Width = 45
  234.         Height = 16
  235.         Caption = 'Name'
  236.       end
  237.       object Style3: TLabel
  238.         Left = 34
  239.         Top = 36
  240.         Width = 49
  241.         Height = 16
  242.         Caption = 'Cuisine'
  243.       end
  244.       object Phone3: TLabel
  245.         Left = 37
  246.         Top = 65
  247.         Width = 48
  248.         Height = 16
  249.         Caption = 'Phone'
  250.       end
  251.       object Location3: TLabel
  252.         Left = 23
  253.         Top = 88
  254.         Width = 62
  255.         Height = 19
  256.         Caption = 'Location'
  257.       end
  258.       object DBEditName3: TDBEdit
  259.         Left = 92
  260.         Top = 5
  261.         Width = 164
  262.         Height = 25
  263.         DataField = 'Name'
  264.         DataSource = DataSourceRest
  265.         MaxLength = 40
  266.         TabOrder = 0
  267.       end
  268.       object ComboPlusSubCat3: TDBLookupComboPlus
  269.         Left = 92
  270.         Top = 32
  271.         Width = 164
  272.         Height = 25
  273.         Hint = 
  274.           'Main Table Data is an integer. Lookup displays a string. Style =' +
  275.           ' csIncSearch'
  276.         DataField = 'SubCat'
  277.         DataSource = DataSourceRest
  278.         LookupSource = DataSourceSubCat
  279.         LookupDisplay = 'SubCatName'
  280.         LookupField = 'SubCatNum'
  281.         LookupIndex = 'bySubCatName'
  282.         Style = csIncSearch
  283.         DropDownAlign = Left
  284.         ParentShowHint = False
  285.         ShowHint = True
  286.         TabOrder = 1
  287.       end
  288.       object DBEditPhone3: TDBEdit
  289.         Left = 92
  290.         Top = 59
  291.         Width = 100
  292.         Height = 25
  293.         DataField = 'Phone'
  294.         DataSource = DataSourceRest
  295.         MaxLength = 14
  296.         TabOrder = 2
  297.       end
  298.       object ComboPlusLocation3: TDBLookupComboPlus
  299.         Left = 92
  300.         Top = 86
  301.         Width = 164
  302.         Height = 25
  303.         Hint = 
  304.           'Main table data is a string and lookup table is a string. Style ' +
  305.           '= csIncSearch'
  306.         DataField = 'Location'
  307.         DataSource = DataSourceRest
  308.         LookupSource = DataSourceLocation
  309.         LookupDisplay = 'Location'
  310.         LookupField = 'Location'
  311.         Style = csIncSearch
  312.         ParentShowHint = False
  313.         ShowHint = True
  314.         TabOrder = 3
  315.       end
  316.       object DBNavigator2: TDBNavigator
  317.         Left = 0
  318.         Top = 134
  319.         Width = 356
  320.         Height = 25
  321.         DataSource = DataSourceRest
  322.         Align = alBottom
  323.         ParentShowHint = False
  324.         ShowHint = True
  325.         TabOrder = 4
  326.       end
  327.     end
  328.     object TTabPage
  329.       Left = 5
  330.       Top = 45
  331.       Caption = '4. csIncSrchEdit'
  332.       object Name4: TLabel
  333.         Left = 44
  334.         Top = 5
  335.         Width = 45
  336.         Height = 21
  337.         Caption = 'Name'
  338.       end
  339.       object Style4: TLabel
  340.         Left = 36
  341.         Top = 33
  342.         Width = 49
  343.         Height = 16
  344.         Caption = 'Cuisine'
  345.       end
  346.       object Phone4: TLabel
  347.         Left = 40
  348.         Top = 61
  349.         Width = 48
  350.         Height = 21
  351.         Caption = 'Phone'
  352.       end
  353.       object Location4: TLabel
  354.         Left = 26
  355.         Top = 86
  356.         Width = 62
  357.         Height = 21
  358.         Caption = 'Location'
  359.       end
  360.       object DBEditName4: TDBEdit
  361.         Left = 97
  362.         Top = 3
  363.         Width = 164
  364.         Height = 25
  365.         DataField = 'Name'
  366.         DataSource = DataSourceRest
  367.         MaxLength = 40
  368.         TabOrder = 0
  369.       end
  370.       object DBEditPhone4: TDBEdit
  371.         Left = 97
  372.         Top = 58
  373.         Width = 100
  374.         Height = 25
  375.         DataField = 'Phone'
  376.         DataSource = DataSourceRest
  377.         MaxLength = 14
  378.         TabOrder = 2
  379.       end
  380.       object ComboPlusLocation4: TDBLookupComboPlus
  381.         Left = 97
  382.         Top = 87
  383.         Width = 169
  384.         Height = 25
  385.         Hint = 
  386.           'Main table data is a string and lookup table is a string. Style ' +
  387.           '= csIncSrchEdit'
  388.         DataField = 'Location'
  389.         DataSource = DataSourceRest
  390.         LookupSource = DataSourceLocation
  391.         LookupDisplay = 'Location'
  392.         LookupField = 'Location'
  393.         Style = csIncSrchEdit
  394.         AutoDropDown = False
  395.         ParentShowHint = False
  396.         ShowHint = True
  397.         TabOrder = 3
  398.       end
  399.       object DBNavigator3: TDBNavigator
  400.         Left = 0
  401.         Top = 134
  402.         Width = 356
  403.         Height = 25
  404.         DataSource = DataSourceRest
  405.         Align = alBottom
  406.         ParentShowHint = False
  407.         ShowHint = True
  408.         TabOrder = 4
  409.       end
  410.       object ComboPlusSubCat4: TDBLookupComboPlus
  411.         Left = 97
  412.         Top = 30
  413.         Width = 161
  414.         Height = 25
  415.         Hint = 
  416.           'Main Table Data is an integer. Lookup displays a string. Style =' +
  417.           ' csIncSrchEdit'
  418.         DataField = 'SubCat'
  419.         DataSource = DataSourceRest
  420.         LookupSource = DataSourceSubCat
  421.         LookupDisplay = 'SubCatName'
  422.         LookupField = 'SubCatNum'
  423.         LookupIndex = 'bySubCatName'
  424.         Style = csIncSrchEdit
  425.         Ctl3D = True
  426.         DropDownWidth = 250
  427.         ParentCtl3D = False
  428.         ParentShowHint = False
  429.         ShowHint = True
  430.         TabOrder = 1
  431.         OnNewLookupRec = ComboPlusSubCat4NewLookupRec
  432.       end
  433.     end
  434.   end
  435.   object Panel1: TPanel
  436.     Left = 0
  437.     Top = 213
  438.     Width = 374
  439.     Height = 162
  440.     Align = alBottom
  441.     TabOrder = 1
  442.     object RadioGroupAutoDropDown: TRadioGroup
  443.       Left = 54
  444.       Top = 8
  445.       Width = 132
  446.       Height = 42
  447.       Caption = 'AutoDropDown'
  448.       Font.Color = clBlack
  449.       Font.Height = -11
  450.       Font.Name = 'Arial'
  451.       Font.Style = [fsBold]
  452.       ItemIndex = 0
  453.       Items.Strings = (
  454.         'True'
  455.         'False')
  456.       ParentFont = False
  457.       TabOrder = 0
  458.       OnClick = RadioGroupAutoDropDownClick
  459.     end
  460.     object RadioGroupSpeedButton: TRadioGroup
  461.       Left = 193
  462.       Top = 96
  463.       Width = 131
  464.       Height = 45
  465.       Caption = 'ShowSpeedButton'
  466.       Font.Color = clBlack
  467.       Font.Height = -11
  468.       Font.Name = 'Arial'
  469.       Font.Style = [fsBold]
  470.       ItemIndex = 0
  471.       Items.Strings = (
  472.         'True'
  473.         'False')
  474.       ParentFont = False
  475.       TabOrder = 1
  476.       OnClick = RadioGroupSpeedButtonClick
  477.     end
  478.     object RadioGroupBorderStyle: TRadioGroup
  479.       Left = 54
  480.       Top = 50
  481.       Width = 131
  482.       Height = 45
  483.       Caption = 'BorderStyle'
  484.       Font.Color = clBlack
  485.       Font.Height = -11
  486.       Font.Name = 'Arial'
  487.       Font.Style = [fsBold]
  488.       ItemIndex = 1
  489.       Items.Strings = (
  490.         'bsNone'
  491.         'bsSingle')
  492.       ParentFont = False
  493.       TabOrder = 2
  494.       OnClick = RadioGroupBorderStyleClick
  495.     end
  496.     object RadioGroupDropDownAlign: TRadioGroup
  497.       Left = 191
  498.       Top = 5
  499.       Width = 132
  500.       Height = 45
  501.       Caption = 'DropDownAlign'
  502.       Font.Color = clBlack
  503.       Font.Height = -11
  504.       Font.Name = 'Arial'
  505.       Font.Style = [fsBold]
  506.       ItemIndex = 1
  507.       Items.Strings = (
  508.         'Left'
  509.         'Right')
  510.       ParentFont = False
  511.       TabOrder = 3
  512.       OnClick = RadioGroupDropDownAlignClick
  513.     end
  514.     object RadioGroupDropDownTop: TRadioGroup
  515.       Left = 193
  516.       Top = 50
  517.       Width = 131
  518.       Height = 45
  519.       Caption = 'DropDownTop'
  520.       Font.Color = clBlack
  521.       Font.Height = -11
  522.       Font.Name = 'Arial'
  523.       Font.Style = [fsBold]
  524.       ItemIndex = 1
  525.       Items.Strings = (
  526.         'Above'
  527.         'Below')
  528.       ParentFont = False
  529.       TabOrder = 4
  530.       OnClick = RadioGroupDropDownTopClick
  531.     end
  532.     object RadioGroupCtrl3D: TRadioGroup
  533.       Left = 56
  534.       Top = 96
  535.       Width = 131
  536.       Height = 45
  537.       Caption = 'Ctrl3D'
  538.       Font.Color = clBlack
  539.       Font.Height = -11
  540.       Font.Name = 'Arial'
  541.       Font.Style = [fsBold]
  542.       ItemIndex = 0
  543.       Items.Strings = (
  544.         'True'
  545.         'False')
  546.       ParentFont = False
  547.       TabOrder = 5
  548.       OnClick = RadioGroupCtrl3DClick
  549.     end
  550.   end
  551.   object TableRest: TTable
  552.     Active = True
  553.     DatabaseName = 'Beta'
  554.     TableName = 'REST.DB'
  555.     Left = 289
  556.     Top = 45
  557.     object TableRestName: TStringField
  558.       FieldName = 'Name'
  559.       Size = 40
  560.     end
  561.     object TableRestSubCat: TSmallintField
  562.       FieldName = 'SubCat'
  563.     end
  564.     object TableRestLocation: TStringField
  565.       FieldName = 'Location'
  566.       Size = 30
  567.     end
  568.     object TableRestPhone: TStringField
  569.       FieldName = 'Phone'
  570.       Size = 14
  571.     end
  572.   end
  573.   object DataSourceRest: TDataSource
  574.     DataSet = TableRest
  575.     Left = 320
  576.     Top = 46
  577.   end
  578.   object TableLocation: TTable
  579.     Active = True
  580.     DatabaseName = 'Beta'
  581.     TableName = 'LOCATION.DB'
  582.     Left = 288
  583.     Top = 75
  584.     object TableLocationLocation: TStringField
  585.       FieldName = 'Location'
  586.       Size = 30
  587.     end
  588.   end
  589.   object DataSourceLocation: TDataSource
  590.     DataSet = TableLocation
  591.     Left = 317
  592.     Top = 75
  593.   end
  594.   object TableSubCat: TTable
  595.     Active = True
  596.     DatabaseName = 'Beta'
  597.     TableName = 'SUBCAT.DB'
  598.     Left = 287
  599.     Top = 105
  600.     object TableSubCatSubCatNum: TSmallintField
  601.       FieldName = 'SubCatNum'
  602.     end
  603.     object TableSubCatSubCatName: TStringField
  604.       FieldName = 'SubCatName'
  605.       Size = 15
  606.     end
  607.   end
  608.   object DataSourceSubCat: TDataSource
  609.     DataSet = TableSubCat
  610.     Left = 318
  611.     Top = 106
  612.   end
  613. end
  614.